/*
 * Copyright (c) 2002-2003 by OpenSymphony
 * All rights reserved.
 */
package org.jackysoft.entity;





import org.dom4j.Element;
import org.jackysoft.bean.define.EntitySchemas;

/**
 * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody</a>
 */


public class ConditionsResultNode extends ResultNode {
	// ~ Instance fields
	// ////////////////////////////////////////////////////////

	/**
	 * 
	 */
	private static final long serialVersionUID = -9101546025871639419L;
	private ConditionsNode conditions;

	// ~ Constructors
	// ///////////////////////////////////////////////////////////

	public ConditionsResultNode() {
	}

	public ConditionsResultNode(Element element) {
		super(element);
	}

	@Override
	public Element asElement() {
		Element root = super.asElement();

		root.setName("result");
		addchild(root, this.conditions);
		return root;
	}

	// ~ Methods
	// ////////////////////////////////////////////////////////////////

	
	
	public ConditionsNode getConditions() {
		return conditions;
	}

	@Override
	protected void init(Element root) {
		super.init(root);
		this.conditions = childof(root, "conditions", ConditionsNode.class);

	}

	public void setConditions(ConditionsNode conditions) {
		this.conditions = conditions;
	}

	@Override
	public String tagName() {
		// TODO Auto-generated method stub
		return null;
	}
	
	

}
